package com.atmk.atmk.designMode.结构型.桥接模式.抽象化角色;

import com.atmk.atmk.designMode.结构型.桥接模式.实现化角色.IPayMode;

import java.math.BigDecimal;

public abstract class Pay {

    //桥接对象
    protected IPayMode payMode;

    public Pay(IPayMode payMode) {
        this.payMode = payMode;
    }

    //划账功能
    public abstract String transfer(String uId, String tradeId, BigDecimal amount);

}
